package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.Brand;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BrandMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Brand record);

    Brand selectByPrimaryKey(Integer id);

    List<Brand> selectAll();

    int updateByPrimaryKey(Brand record);


    List<Brand> selectBrandByCons(String cons);
}